package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.biz.SalarySocialInsurance;

/**
 * 社保管理服务
 * 
 * @author henry
 * 
 */
public interface SalaryInsuranceService {
	/**
	 * 根据社保编号获取社保信息
	 * 
	 * @param id
	 * @return
	 */
	SalarySocialInsurance get(Long id);

	/**
	 * 保存社保信息
	 * 
	 * @param insurance
	 */
	void save(SalarySocialInsurance insurance);

	/**
	 * 删除社保信息
	 * 
	 * @param ids
	 */
	void deleteSocialInsurances(String ids);

	/**
	 * 删除社保项目细节
	 * 
	 * @param insuranceId
	 */
	void deleteSocialInsuranceDetails(Long insuranceId);

	/**
	 * 获取社保信息列表
	 * 
	 * @param organizationId
	 * @param limit
	 * @param sorter
	 * @return
	 */
	LimitedList<SalarySocialInsurance> find(Long organizationId, Limit limit,
			Sorter sorter);

	/**
	 * 获取社保关键字信息列表
	 * 
	 * @param organizationId
	 * @return
	 */
	LimitedList<SalarySocialInsurance> searchInsuranceList(Long organizationId);
}
